//日志模块
import request from "@/utlis/request";
import type {
  IPage,
  ILogResponseData,
  IDeleteResponseData,
} from "@/api/acl/type";

enum API {
  LOGFINDPAGE_URL = "/log/findPage", //查询列表
  LOGDELETE_URL = "/log/delete", //删除
}

export const reqFindPage = async (data: IPage) => {
  return await request.post<any, ILogResponseData>(API.LOGFINDPAGE_URL, data);
};

export const reqDeleteLog = async (data: any) => {
  return await request.post<any, IDeleteResponseData>(API.LOGDELETE_URL, data);
};
